import { http } from '@/utils/http'
import type { LoginResult } from '@/types/member'
// data请求参数
// type LoginParams = {
//   code: string
//   // encryptedData: string
//   // iv: string
// }
export const postLoginWiMin = (data:any) => {
  
  return http<LoginResult>({
    method: 'POST',
    url: '/user/user/login',
    data
  })
  console.log(data)
}
// 模拟手机号登录
export const postLoginSimpleWiMin = (mobile: string) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: {
      mobile,
    },
  })
}
